using System;
using Telerik.WebControls;

namespace NCS.Multimedia.Admin.UserControls
{
	public partial class Editor : System.Web.UI.UserControl
	{
		public string HTMLValue
		{
			set { txtContent.Html = value; }
			get
			{
				string imgHost = "http://" + Request.Url.Host;
				if (!Request.Url.IsDefaultPort) imgHost += ":" + Request.Url.Port;
				return txtContent.Html.Replace(imgHost, string.Empty);
				;
			}
		}

	    private int heigth = 300;
	    public int Height
	    {
	        set
	        {
	            txtContent.Height = value;
	        }
	    }
         private int width = 504;
	    public int Width
	    {
	        set
	        {
	            txtContent.Width = value;
	        }
	    }
		public string UploadDir
		{
			set { txtContent.SetPaths(new string[] { value }, EditorFileTypes.All, EditorFileOptions.All); }
		}
        
		protected void Page_Load(object sender, EventArgs e)
		{
           
		}
	}
}